package restful.servlet.sample;


import static java.text.MessageFormat.*;
import static restful.Methods.*;

public class RestfulUri {

	private final String result;

	public RestfulUri(final String method, final String uri) {
		this(method, uri, "");
	}

	public RestfulUri(final String method, final String uri, final String queryString) {
		result = format("{0} {1}{2}", method, uri, methodOf(queryString)).toString();
	}

	@Override
	public String toString() {
		return result;
	}

}
